// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import filter from './filter'
import VueLazyload from 'vue-lazyload'
import VueClipboard from 'vue-clipboard2'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
Vue.use(VueClipboard)
Vue.config.productionTip = false
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('./assets/image-empty.png'),
  loading: require('./assets/loading.png'),
  attempt: 1
  // adapter: {
  //   loaded({bindType, el, naturalHeight, naturalWidth, $parent, src, loading, error, Init}) {
  //     // do something here
  //     // example for call LoadedHandler
  //     console.log(el)
  //   },
  //   loading(listender, Init) {
  //     console.log('loading')
  //   },
  //   error(listender, Init) {
  //     console.log('error')
  //   }
  // }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {App},
  template: '<App/>'
})
